<template>
    <ITabs :tabsOption="tabsOption"></ITabs>
</template>

<script lang="ts">
import { defineComponent, onMounted, reactive } from 'vue'
import { ITabs } from '@/entry.esm'
import { TabsInterface } from '@/ITabs/src/ITableInterface'
export default defineComponent({
  name: 'app',
  setup () {
    const tabsOption:TabsInterface = reactive({
      list: []
    })
    onMounted(() => {
      tabsOption.list = [
        {
          label: '测试1',
          value: 'text'
        },
        {
          label: '测试2',
          value: 'text2'
        },
        {
          label: '测试3',
          value: 'text3'
        }
      ]
    })
    return {
      tabsOption
    }
  },
  components: {
    ITabs
  }
})
</script>
